package com.dmai.capacity.platform.user.pojo.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 重置密码
 *
 * @author
 * @email
 * @date 2024-05-22 13:36:20
 */

@Data
public class PasswordEmailRequest implements Serializable {
    private static final long serialVersionUID = 1L;


    @NotEmpty(message = "账号不能为空")
    private String username;

    @NotEmpty(message = "邮箱不能为空")
    @Email(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$", message = "联系人邮箱格式不正确")
    private String email;


}
